package com.example.gulimall.seckill.constant;

public class SeckillConstant {
    //存储的秒杀场次对应数据
//K: SESSION_CACHE_PREFIX + startTime + "_" + endTime
//V: sessionId+"-"+skuId的List
    public static final String SESSION_CACHE_PREFIX = "seckill:sessions:";

    //存储的秒杀商品数据
//K: 固定值SECKILL_CHARE_PREFIX
//V: hash，k为sessionId+"-"+skuId，v为对应的商品信息SeckillSkuRedisTo
    public static final String SECKILL_CHARE_PREFIX = "seckill:skus";

    //K: SKU_STOCK_SEMAPHORE+商品随机码
//V: 秒杀的库存件数
    public static final String SKU_STOCK_SEMAPHORE = "seckill:stock:";    //+商品随机码
}
